#define _CRT_SECURE_NO_WARNINGS 1

#include<stdio.h>

//#include<string.h>
int main()
{
	int row;//行数
	int col;//列数
	int count1 = 0;//大写字母数
	int count2 = 0;//小写字母数
	int count3 = 0;//数字个数
	int count4 = 0;//空格个数
	int count5 = 0;//其它字符个数
	char arr [3][80];
	for (row = 0; row < 3; row++)
	{
		printf("please input a line %d:\n", row + 1);
		gets(arr[row]);
	}
	for (row = 0; row < 3; row++)
	{
		for (col = 0; col < 80 && arr[row][col]!='\0'; col++)
		{
			if (arr[row][col] >= 'A' && arr[row][col] <= 'Z')
				count1++;
			else if (arr[row][col] >= 'a' && arr[row][col] <= 'z')
				count2++;
			else if (arr[row][col] >= '0' && arr[row][col] <= '9')
				count3++;
			else if (arr[row][col] == ' ')
				count4++;
			else
				count5++;
		}
	}
	printf("大写字母个数为%d\n", count1);
	printf("小写字母个数为%d\n", count2);
	printf("数字个数为%d\n", count3);
	printf("空格字母个数为%d\n", count4);
	printf("其他字符个数为%d\n", count5);
	return 0;
}